package com.kgo.usermanage.config;

import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * @author keepgoon
 * @Description: Spring MVC 配置
 * @date 2018/12/1415:37
 */
public class MvcConfig extends WebMvcConfigurationSupport {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
       // registry.addResourceHandler("/**").addResourceLocations("classpath:/META-INF/resources/WebApp").setCachePeriod(0);
        registry.addResourceHandler("/**").addResourceLocations("classpath:/WebApp/");
        super.addResourceHandlers(registry);
    }
}
